package com.boarsoft.boar.office.group;

import com.boarsoft.boar.office.entity.OfficeGroupUser;
import com.boarsoft.common.dao.PagedResult;

public interface OfficeGroupUserBiz {
	/**
	 * 
	 * @param groupId
	 * @param userIds
	 * @param isAdd
	 */
	void toggle(String groupId, String[] userIds, boolean isAdd);

	/**
	 * 取用户默认的组
	 * 
	 * @param userId
	 * @return
	 */
	OfficeGroupUser getUserDefaultGroupId(String userId);

	PagedResult<OfficeGroupUser> list(String groupId, String key, String orderBy, int pageNo, int pageSize);
}